#include <string.h>

size_t strlen(const char *s) {
    unsigned long long cnt = 0;
    char c;
    while ((c = s[cnt ++]) != '\0');
    return cnt;
}

void *memset(void *s, int c, size_t n) {
    char *p = s;
    while (n -- > 0) {
        *p = c;
    }
    return s;
}